package com.mo.demo;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CacheHolder {
    public static final Map<String,User> userCache = new ConcurrentHashMap<>();
    public static User get(String key){
        return userCache.get(key);
    }
    public static void put(String key,User user){
        userCache.put(key,user);
    }
    public static void remove(String key){
        userCache.remove(key);
    }
}
